package controllers;

import play.*;
import play.mvc.*;

import java.util.*;

import org.apache.commons.lang.StringUtils;

import models.*;

public class Application extends BaseController {

    public static void index111() {
        render();
    }
    public static void index() {
        render();
    }
    /**
     * 获取风琴菜单父节点
     *
     * @Title: getAccordion 
     * @return: void
     */
    public static void getAccordion(){
    	List<SystemMenu> lists=SystemMenu.getMenu();
    	List<SystemMenu> relist=new ArrayList<SystemMenu>();
    	for(SystemMenu menu : lists){
    		List<SystemMenu> children=SystemMenu.getMenus(menu.menuid);
    		menu.children=children;
    		relist.add(menu);
    	}
    	renderJSON(relist);
    }
}